package utils.node;

import javax.swing.tree.DefaultMutableTreeNode;
import javax.swing.tree.DefaultTreeModel;

/**
 *
 * @author fuujin
 */
public class RootNode extends DefaultMutableTreeNode
{
    private final String name_;
    private DefaultTreeModel tree_;
    
    public RootNode( final String name )
    {
        super();
        
        name_ = name;
    }
    
    public void setTree( final DefaultTreeModel tree )
    {
        tree_ = tree;
    }
    
    public DefaultTreeModel getTree()
    {
        return tree_;
    }
    
    @Override
    public String toString()
    {
        return name_;
    }
}
